package Games.Gobang.Bluetooth;

import java.io.Serializable;

public class SerializationObjectWraper implements Serializable {

	private static final long serialVersionUID = -4814447682989382154L;

	public final static int BeginGame_Request = 1;
	public final static int BeginGame_Request_Confirm_OK = 2;
	public final static int BeginGame_Request_Confirm_Reject = 3;

	public final static int TakeBack = 4;
	public final static int TakeBack_Request_Confirm_OK = 5;
	public final static int TakeBack_Request_Confirm_Reject = 6;

	public final static int PutOnAChessman = 7;

	public final int GiveUpRequest = 8;

	private int gameOperatorCode;
	private Serializable data;

	public SerializationObjectWraper(int opCode, Serializable _data) {
		setGameOperatorCode(opCode);
		setData(_data);
	}

	public int getGameOperatorCode() {
		return gameOperatorCode;
	}

	public void setGameOperatorCode(int gameOperatorCode) {
		this.gameOperatorCode = gameOperatorCode;
	}

	public Serializable getData() {
		return data;
	}

	public void setData(Serializable data) {
		this.data = data;
	}
}
